#include <stdio.h>

int addToTop(int top)
{
    int ret = 0;
    for (int i = 1; i <= top; ++i)
        ret += i;
    return ret;
}

int main()
{
    printf("debug begin\n");

    int top = 100;
    int sum = addToTop(top);

    printf("sum = %d\n", sum);

    printf("debug end\n");
    return 0;
}
